/**
 */
package org.mro.grib.model.files.secondEdition.grids;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Spectral Data Representation Type</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * @see org.mro.grib.model.files.secondEdition.grids.GridsPackage#getSpectralDataRepresentationType()
 * @model annotation="http://www.eclipse.org/emf/2002/GenModel description_en='Code table 3.6 \u2013 Spectral data representation type'"
 * @generated
 */
public enum SpectralDataRepresentationType implements Enumerator {
	/**
	 * The '<em><b>SPECTRAL DATA REPRESENTATION TYPE 1</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #SPECTRAL_DATA_REPRESENTATION_TYPE_1_VALUE
	 * @generated
	 * @ordered
	 */
	SPECTRAL_DATA_REPRESENTATION_TYPE_1(1, "SPECTRAL_DATA_REPRESENTATION_TYPE_1", "SPECTRAL_DATA_REPRESENTATION_TYPE_1"); //$NON-NLS-1$ //$NON-NLS-2$

	/**
	 * The '<em><b>SPECTRAL DATA REPRESENTATION TYPE 1</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>SPECTRAL DATA REPRESENTATION TYPE 1</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #SPECTRAL_DATA_REPRESENTATION_TYPE_1
	 * @model annotation="http://www.eclipse.org/emf/2002/GenModel description_en='The associated Legendre functions of the first kind are defined by:\r\nPm( )\r\nn \u03bc = ( 1) ,m 0\r\nd\r\n(1 ) d\r\n2 n!\r\n1\r\n(n m)!\r\n(2n 1) (n m)! 2 n\r\nn m\r\nn m\r\n2 m/ 2\r\nn \u03bc \u2212 \u2265\r\n\u03bc\r\n\u2212 \u03bc\r\n+\r\n\u2212\r\n+ +\r\n+\r\nP ( ) Pm( )\r\nn\r\nm\r\nn \u2212 \u03bc = \u03bc\r\nA field F(\u03bb, \u03bc) is represented by:\r\n\u03bb\r\n=\u2212 =\r\n\u03bb \u03bc = \u03a3 \u03a3 m \u03bc im\r\nn\r\nm\r\nn\r\nN(m)\r\nn m\r\nM\r\nm m\r\nF( , ) F P ( )e\r\nwhere \u03bb is the longitude,\r\n\u03bc the sine of latitude,\r\nand m the complex conjugate of\r\nn F\u2212 m\r\nn F\r\nI'"
	 * @generated
	 * @ordered
	 */
	public static final int SPECTRAL_DATA_REPRESENTATION_TYPE_1_VALUE = 1;

	/**
	 * An array of all the '<em><b>Spectral Data Representation Type</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final SpectralDataRepresentationType[] VALUES_ARRAY =
		new SpectralDataRepresentationType[] {
			SPECTRAL_DATA_REPRESENTATION_TYPE_1,
		};

	/**
	 * A public read-only list of all the '<em><b>Spectral Data Representation Type</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<SpectralDataRepresentationType> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Spectral Data Representation Type</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static SpectralDataRepresentationType get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			SpectralDataRepresentationType result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Spectral Data Representation Type</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static SpectralDataRepresentationType getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			SpectralDataRepresentationType result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Spectral Data Representation Type</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static SpectralDataRepresentationType get(int value) {
		switch (value) {
			case SPECTRAL_DATA_REPRESENTATION_TYPE_1_VALUE: return SPECTRAL_DATA_REPRESENTATION_TYPE_1;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private SpectralDataRepresentationType(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //SpectralDataRepresentationType
